<template>
<div>
        <div  v-if="$store.state.AuthUser.loadIngShow">
            <header class="header">
            <div class="ceilBox">
                <div class="ceil wrap clearfix">
                   <!--  <div class="tzSlogan">
                        <span>集设网用户交流群 <a href="https://jq.qq.com/?_wv=1027&k=5bQRL7I" target="_blank">644602905</a></span>
                    </div> -->
                    <div class="jsLogo">
                        <span class="refIndex" @click="clickLogo"></span>
                    </div>
                    <search></search>
                    <div class="headNav">
                        <ul class="navList">
                            <li>
                                <router-link to="/uploadIndex" title="模型上传"><i class="uploadImg"></i> </router-link>
                                <!-- <span @click="loginConfirm('uploadIndex')"><i class="iconfont icon-shangchuan1 uploadImg"></i> 素材上传</span> -->
                            </li>
                            <li>
                                <router-link to="/recharge" target="_blank" title="会员充值"> <i class="moneyCenter"></i></router-link>
                                <!-- <span @click="loginConfirm('Recharge')"> <i class="iconfont icon-huiyuan moneyCenter"></i>充值中心</span> -->
                            </li>
                            <!-- <li>
                                <router-link to="/aboutTz">关于我们</router-link>
                            </li> -->
                        </ul>
                        <login-register></login-register>
                        
                    </div>
                </div>
                </div>
                
        </header>
             <loading loadingStyle="height: 570px"></loading>
        </div>
       
       <router-view v-else></router-view> 
        
        <login-mask></login-mask>
        <there-tel></there-tel>
         <footer class="tzFoot">
            <div class="footerInfo">
                <ul class="clearfix">
                    <li>
                        <router-link to="/aboutJs">关于我们</router-link>
                    </li>
                    <!-- <li>帮助中心</li> -->
                    <li><router-link to="/recharge" target="_blank">充值中心</router-link></li>
                    <!-- <li><router-link to="/downTools" target="_blank">软件下载</router-link></li> -->
                </ul>
                <p>QQ交流群：644602905</p>
                <p style="text-align:center;">经营性备案-京ICP备18055612号-1号 || 版权所有</p>
            </div>
        </footer>
        <!-- <div class="boon">
            <img class="boonBtn" src="./img/boon.png" alt="">
            <a  v-if="user.adAndRecommend" :href="user.adAndRecommend.weekWelfare.url" class="boonImgBox" target="_blank"><img class="boonImg" :src="user.adAndRecommend.weekWelfare.image" alt=""></a>
        </div> -->
        <ul class="side">
            <li>
                <router-link to="/recharge" target="_blank">
                <span>全站VIP</span>
                <!-- <img src="../../img/pc.png" alt="">  -->
                <i class=""></i>
                </router-link>
            </li>
            <!-- <li>
               <router-link to="/uploadIndex"> 
               <span>素材上传</span>
                <i class=""></i>
                </router-link>
            </li> -->
            <li>
               <a href="https://jq.qq.com/?_wv=1027&k=5kV9sVS" target="_blank"> 
               <span>QQ群</span>
                <i class=""></i>
                </a>
            </li>
            <li>
                <a href="http://wpa.qq.com/msgrd?v=3&amp;uin=2359987423&amp;site=qq&amp;menu=yes" target="_blank">
                    <span>在线客服</span>
                    <i class=""></i>
                </a>
                
            </li>
            
        </ul>
        <div class="goTopIcon" @click="goTop" v-if="goTopShow">
                <span>返回顶部</span>
                <i class=""></i>
            </div>
        <list-mode-info></list-mode-info>
        <definition-mask></definition-mask>
        
    </div>
</template>

<script>


// import {mapState} from 'vuex';

import {mapState,mapMutations,mapGetters,mapActions} from 'vuex';
import jwtToken from '../../helpers/jwt'
import Cookie from 'js-cookie'
import loading from '../loading'//load组件
// import ceil from '../'
/* import axios from 'axios'
import Posts from './../posts/Index'
// 设置项目请求的根路径,设置以后，项目中调所有接口就会在前面拼接上根路径
axios.defaults.baseURL = 'http://192.168.1.162/api';
// axios.defaults.baseURL = '/api';
// axios.defaults.baseURL = 'http://jishe.com/api';
// 使用axios发送post请求时,设置默认请求头中Content-Type的值
axios.defaults.headers.post['Content-Type'] = 'application/json';
// 给请求头加一个名为'Authorization'的参数，可以用于设置请求头带token验证
axios.defaults.headers.common['Authorization'] = 'Bearer YWMtknehLoJT2k_f7mlPoNgo'; */


export default {
    name:'top-menu',
    data(){
        return {
            loadingShow:true,
            goTopShow : true,//返回顶部
            boonMsg : null,//福利详情
        }
    },
    computed:{
        ...mapState({
            user: state => state.AuthUser
        })
    },
    watch:{
        $route(to,from){
            /* axios.get("/usershow/"+to.query.id+"/1/getitems").then(response=>{
                this.userInfo = response.data.userinfo;
                this.titleMsg = this.userInfo.name+"- 集设网";
                this.descriptionMsg = this.userInfo.sign;
            }) */
            if(to.path=="/userCore"){
                this.goTopShow = false;
            }else{
                this.goTopShow = true;
            }
        }

    },
    methods:{
        ...mapMutations(//mutations中的方法
            ["loginShow","loginClose","loginLoginName","registerLoginName","listModeHide","editAr"]
        ),
        loginConfirm(msg){//判断是否登录
            if(!this.user.authenticated){
                this.$store.commit("loginShow");
            }else{
                this.$router.push(msg)
            }
        },
        clickLogo(){
            window.location.reload();
        },
        /* logout() {
            this.$store.dispatch('logoutRequest').then(response => {
                this.$router.push({name: 'home'})
            })
        }, */
        goTop(){//返回顶部
            document.body.scrollTop = 0
            document.documentElement.scrollTop = 0
        },
    
    },
    components:{
        loading,
        loginRegister : resolve => require(["../loginRegister"], resolve),//登录注册
        loginMask :resolve => require(["../loginMask"], resolve),//登录弹窗
        thereTel :resolve => require(["../thereTel"], resolve),//第三方绑定手机号
        search : resolve => require(["../search/search"], resolve),//搜索组件
        listModeInfo : resolve => require(["../modeInfo/listModeInfo"], resolve),//模块列表蒙层
        definitionMask : resolve => require(["../modeInfo/definitionMask"], resolve),//模块列表蒙层高清案例
    },
    created() {

        if (jwtToken.getToken()) { //判断是否登录
            this.$store.dispatch('setAuthUser');
        } else if(Cookie.get('auth_id')) {
            this.$store.dispatch('refreshToken');
        };
        if(this.$route.path=="/userCore"){
            this.goTopShow = false;
        }else{
            this.goTopShow = true;
        }
        axios.get("/weekWelfare").then(response=>{
            // this.boonMsg = response.data.data;
            this.editAr(response.data)
        })
        
    },
}
</script>
<style scope>
.loadBox{
    width: 100%;
    height: 700px;
    background: url(../../img/loading.gif) no-repeat center;
}
.header{
    position: fixed;
    top: 0;
    z-index: 999;
    width: 100%;
    background: #fff;
}
.tzLogo {
  float: left;
  width: 205px;
}
.ceilBox {
  height: 71px;
  background: #ffffff;
  border-bottom: 1px solid #dddddd;
}

.tzSlogan {
  float: left;
}

.tzSlogan span,.tzSlogan span a{
  font-size: 12px;
  line-height: 30px;
  color: #687070;
}

.headNav {
  float: right;
  width: 200px;
  height:71px;
}
.userInfo {
  float: right;
  width: 67px;
  padding-top: 10px;
  position: relative;
  /* margin-top: 16px; */
}

.userInfo img {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  float: left;
  /* margin-left: 25px; */
  /* margin-top: 5px; */
}

.userInfo span {
  /* width: 68px; */
  min-width: 70px;
  max-width: 116px;
  text-align: left;
  padding-right: 15px;
  font-size: 12px;
  line-height: 30px; 
  color: #687070;
  float: right;
  /* background: url(../../img/headB.png) no-repeat 53px 11px; */
  cursor: pointer;
  margin-left: 4px;
}
.userInfo span:hover{
    color: #ea514b;
}
.navList {
  float: left;
  font-size: 12px;
  line-height: 30px;
  color: #687070;
  margin-top:20px;
}

.navList li {
  float: left;
  /* margin-left: 24px; */
}
.navList li a{
    color: #808787;
}
.userOperate>div {
  font-size: 14px;
  line-height: 30px;
  height: 30px;
  color: #8c8c8c;
  /* border-bottom: 1px solid #dddddd; */
  cursor: pointer;
  padding-left: 11px;
}
.userOperate>div:last-child{
    margin-top: 7px;
    border-top: 1px solid #e8e8e8;
}
.userOperate>div:hover{
    color: #ea514b;
}

.userOperate :last-child {
  border: none;
}

.userOperate {
  position: absolute;
  top: 67px;
  right: 17px;
  width: 200px;
  height: 249px;
  background: #fff;
  box-shadow: 0 2px 4px 2px rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  padding: 9px 7px 12px 6px;
  box-sizing: border-box;
  /* text-align: center; */
  /* display: none; */
  z-index: 9;
}
.uploadImg,.moneyCenter {
    display:inline-block;
  width: 27px;
  height:27px;
  /* font-size: 14px;
  line-height: 14px; */
  background: url(./img/newUpload.png) no-repeat center;
  margin-right:34px;
}
.moneyCenter{
   
  background: url(./img/newRecharge.png) no-repeat center;
}

.uploadText{
    color: #2d2d37;
}
.upload:hover .uploadText {
  /* color: #d9ad40; */
}

.upload span {
  float: left;
}

.upload {
  float: left;
  text-align: center;
  font-size: 16px;
  line-height: 30px;
  color: #2d2d37;
}
.nav {
    border-radius: 4px;
    /* background-color: rgba(255, 255, 255, 1); */
    /* box-shadow: 0px 2px 7px 5px rgba(177, 177, 177, 0.18); */

}
.navInfo>div{
    /* float: left; */
    display: inline-block;
    color: #060606;
    font-size: 18px;
    line-height: 50px;
    cursor: pointer;
    padding: 0 12px;
    margin: 0 35px;
    position: relative;
    z-index:99;
    /* font-weight: bold; */
}

.navInfo div a:hover{
    /* color: #060606; */
    text-decoration: none;
}

.navInfo div:nth-of-type(1),.navInfo div:nth-last-of-type(2){
    /* margin: 0; */
    /* padding: 0; */
}
.home{
    /* width: 120px; */
    text-align: center;
}
.mode3D{
    /* width: 148px; */
    text-align: center;
}
.vip{
    /* width: 124px; */
    text-align: center;
}
.modeSort span{
    float: left;
    width: 100px;
    position: relative;
}
.modeSort span i{
    position: absolute;
    top: 18px;
    right: 3px;
    width: 13px;
    height: 8px;
    background: url(../../img/bgm.png) no-repeat;
    background-position: -225px -167px;
}


.modeSortBox{
    /* width: 210px; */
    /* padding-left:55px; */
    box-sizing: border-box;
    /* margin-left: -15px; */
    position:relative;
    /* background: #e3aa3f; */

}

 .modeSortMsg{
    position: absolute;
    top: 65px;
    left: 0;
    width: 800px;
    min-height: 390px;
    padding-left:38px;
    box-sizing: border-box;
    background: #fff;
    z-index: 10;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 4px 2px rgba(0, 0, 0, 0.08);
}
 .modeSortMsgItem{
    width: 108px;
    padding-top: 12px;
    /* height: 206px; */
    float: left;

}
.modeSortMsgItem ul{
    height: 115px;
    overflow: hidden;
    text-align: left;
}
.modeSortMsgItem h4{
    font-size: 14px;
    line-height: 30px;
    color: #41414a;
    padding: 0 5px;
    text-align: left;
}
.modeSortMsgItem li{
    font-size: 12px;
    line-height: 30px;
    color: #7e7e7e;
}
.modeSortMsgItem footer{
    font-size: 14px;
    line-height: 30px;
    color: #3f3f3f;
    font-weight: bold;   
    text-align: left;

}
.modeSortMsgItem footer:hover{
    color: #ea524c;
}

.line{
    position: absolute;
    top: 249px;
    left: 30px;
    width: 717px;
    height: 1px;
    background: #dddddd;
    z-index: 9;

}
.tzFoot{
  height: 210px;
  background: #333333;

}
.footerInfo{
  width: 702px;
  margin: 0 auto;
  padding-top: 50px;
  font-size: 16px;
  line-height: 44px;
  color: #f8f8f8;


}
.footerInfo ul{
  /* padding-left: 40px; */
  display: flex!important;
  justify-content: center;
}

.footerInfo ul li{
  float: left;
  margin: 0 37px;

}
.footerInfo ul li a{
    color: #fff;
    text-decoration: none;
}
.footerInfo p:nth-of-type(1){
  text-align: center;
  letter-spacing: 1px;
}
.side{
  position: fixed;
  top: 417px;
  right: 30px;
  z-index :99;
  border-radius: 3px;
  border: 1px solid #ddd;
  overflow: hidden;
}
.goTopIcon{
    position: fixed;
    bottom: 125px;
    right: 30px;
    z-index :2;
    border-radius: 3px;
    border: 1px solid #ddd;
    background: #fff;
}

.side li{
  width: 49px;
  height: 49px;
  /* margin-bottom: 8px; */
  overflow: hidden;
  position: relative;
  z-index: 5;
  cursor:pointer;
  /* border-radius:2px; */
}
.side span,.side img{
  float: right;
  width: 49px;
  height: 49px;
  vertical-align: top;
}
.side i{
    width: 49px;
    height: 49px;
    font-size: 22px;
    line-height: 40px;
    font-weight: bold;
    text-align: center;
    float: right;
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    /* border: 1px solid #dddddd; */
    color: #666666;
}
.side li:nth-of-type(1) i{
    background-image: url(./img/vip.png);
}
.side li:nth-of-type(3) i{
    /* background-image: url(./img/newKefu.png); */
}
.side li:nth-of-type(2) i{
    /* background-image: url(./img/upload.png); */
}
.goTopIcon i{
    background-image: url(./img/top.png);
}
.uploadeIcon{
    background-image: url(./img/upload.png);
}
.side li:nth-of-type(1) span{
    color: #fff;
    background: #ea514b;
    border-bottom: 1px solid #ddd;
}
.side li:nth-of-type(2) span{
    width: 29px;
    height: 48px;
    padding: 0;
    padding-top:6px;    
    margin-left:9px;
    /* color: #7b7b7b; */
    text-align: center;
    border-bottom: 1px solid #ddd;
}
.side span{
    position: absolute;
    top: 0;
    /* right: -50px; */
  float: left;
  font-size: 12px;
  line-height: 18px;
  /* background: #ea514b; */
  color: #757575;
  padding: 7px 12px;
  text-align: center;
  box-sizing: border-box;
  /* z-index: -1; */
  /* opacity: 0; */
  /* transition: all .4s; */
}
/* .side li:nth-of-type(1):hover > a span{
  display: inline-block;
  opacity: 1;
  right: 0;
  z-index: 0;

}*/
.side li:nth-of-type(2):hover>a span,.side li:nth-of-type(3):hover>a span {
  color: #ea514b;
}
/* .side li:nth-of-type(3):hover>a span {
  display: inline-block;
  opacity: 1;
  right: 0;
  z-index: 0;
}
.side li:nth-of-type(4):hover>span {
  display: inline-block;
  opacity: 1;
  right: 0;
  z-index: 0;
}
.side li:nth-of-type(5):hover>span {
  display: inline-block;
  opacity: 1;
  right: 0;
  z-index: 0;
}  */
.goTopIcon span{
        position: absolute;
    top: 0;
    right: -50px;
    float: left;
    font-size: 12px;
    line-height: 12px;
    background: #ea514b;
    color: #fff;
    padding: 7px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    z-index: -1;
    opacity: 0;
    -webkit-transition: all .4s;
    transition: all .4s;
}
.goTopIcon i{
    cursor: pointer;
    width: 49px;
    height: 49px;
    font-size: 22px;
    line-height: 40px;
    font-weight: bold;
    text-align: center;
    float: right;
    /* background-color: #fff; */
    background-position: center;
    background-repeat: no-repeat;
    /* border: 1px solid #dddddd; */
    color: #666666;
}
.goTopIcon:hover{
    background: #faf8f8;
}
.userOperate>div a{
    color: #8c8c8c;
}
.userOperate>div a:hover{
    text-decoration: none;
    color: #ea514b;
}
.registeredLogin{
    float: right;
    /* width:  */
    padding-top: 22px;

}
.registeredLogin button{
    border: none;
    background: transparent;
    outline: none;
    padding: 0;
    /* float: right; */
    font-size: 12px;
    line-height: 12px;
    color: #666;
    /* border-radius: 8px; */
    font-family: "思源黑体";
    float: left;
    color: #3a3a3a;
    font-weight:bold;
}
.registeredLogin button:hover{
        color: #ec5b55!important;
}
 .registeredLogin button:nth-of-type(1){
    padding-right: 9px;
    border-right: 1px solid #333333;
}
.registeredLogin button:nth-of-type(2){
    padding-left: 9px;
} 
.loginMask,.thereTelBox{
    position: fixed;
    top: 0;
    left: 0;
    z-index:1000;
    width: 100%;
    height: 100%;
    background: rgba(0, 0,0,.45)
}
.loginContent,.thereTel{
    width: 402px;
    min-height: 444px;
    background: #fff;
    position: absolute;
    border-radius: 5px;
}
.loginClose{
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9;
    font-size: 20px;
    width: 25px;
    height: 25px;
}
.loginContent .el-tabs__header{
    width: 100%;
    /* height: 73px!important; */
    /* padding-top: 29px; */
    box-sizing: border-box;
    font-size: 18px;
    line-height: 34px;
    color: #a7a7a7;
    margin: 0;
    background: #fff;
    border-radius: 5px;
}
.loginContent .el-tabs__active-bar{
    display: none;
}
.loginContent .el-tabs__nav-wrap::after{
    border-color: #fff!important;
}
.loginContent .el-tabs__nav{
    width: 100%;
}
.loginContent .el-tabs__nav .el-tabs__item.is-active{
    border-left: none!important;
    color: #333333!important;
    font-weight: bold;
}
.loginContent .el-tabs__nav .el-tabs__item{
    width: 50%;
    text-align: center;
    padding: 0;
    color: #999999;
}
.loginContent .el-tabs__nav .el-tabs__item:hover{
    color: #999!important;
    border-left: none!important;
    background: #fff!important;
}
/* .loginContent .el-tabs__nav #tab-login:hover{
    color: #333!important;
} */

.loginBox{
    /* height: 258px; */
    padding: 0 33px;
    background-color: #fff;
}
.loginList li{
    /* margin-top: 20px;
    margin-bottom: 18px; */
}
.loginList li input{
    width: 334px;
    height: 38px;
    border: none;
    padding: 0;
    outline: none;
    border: 1px solid #ddd;
    font-size: 14px;
    line-height: 40px;
    padding-left: 19px;
    box-sizing: border-box;
    background: #f4f4f4;
    color: #bababa!important;
    border-radius: 4px;
}
 .loginList li input::-webkit-input-placeholder {
         /* placeholder颜色  */
        color: #bababa;
 }
.loginList li:nth-of-type(1) input{
    /* background: url(../../img/telBgi.png) no-repeat 10px 7px; */
}

.loginList li:nth-of-type(2) input{
    /* background: url(../../img/pwBgi.png) no-repeat 10px 7px!important; */
}
.loginList .registerNum input{
    float: left;
    width: 148px;
    padding-left: 15px;
}
.registerImg{
    float: right;
    width: 140px;
    height: 40px;
}
.registerImg img{
    width: 96px;
    height: 37px;
    border: 1px solid #ddd;
    display: inline-block;
}
.registerImg button{
    width: 138px;
    height: 38px;
    padding: 0;
    border: none;
    vertical-align: top;
    outline: none;
    cursor: pointer;
    background: #ea514b;
    color: #fff;
}
.inputTel span{
    font-size: 14px;
    line-height: 50px;
}
.inputTel span:nth-of-type(1){
     float: left;
    color: #ea514b;
    cursor:pointer;
}
.inputTel span:nth-of-type(2){
    float: right;
    color: #bbbbbb;
    cursor:pointer;
}
.loginBtn{
    margin-top: 15px;
}
.loginBtn button{
    width: 100%;
    height: 42px;
    background: #ea514b;
    border: none;
    font-size: 14px;
    line-height: 42px;
    color: #fff;
    outline: none;
    border-radius: 4px;
}
.loginBtn button:hover{
    background: #ec817c;
}
.registerBox{
    /* height: 530px; */
    margin-top:24px;
    padding: 0 32px;
    background-color: #fff;
}
.registerBox li{
    margin-bottom: 17px;
}
.registerBox input{
    width: 334px;
    height: 40px;
    border: none;
    padding: 0;
    outline: none;
    border: 1px solid #ddd;
    font-size: 14px;
    line-height: 40px;
    padding-left: 11px;
    color: #b2b2b2;
    box-sizing: border-box;
    background: #f4f4f4;
    border-radius: 4px;
}
 .registerBox input::-webkit-input-placeholder {
         /* placeholder颜色  */
        color: #bababa;
 }
.registerBox li:nth-of-type(1) input{
    /* background: url(../../img/nameImg.png) no-repeat 10px 7px; */
}
.registerBox li:nth-of-type(2) input{
    /* background: url(../../img/zcTelImg.png) no-repeat 10px 7px; */
}
.registerBox li:nth-of-type(4) input,.registerBox li:nth-of-type(5) input{
    /* background: url(../../img/zcPwImg.png) no-repeat 10px 7px; */
}
.registerBox li:nth-of-type(3) input{
    width: 148px;
    padding-left: 10px;
}
.registerBox li:nth-of-type(5){
    margin-bottom: 0;
}
.registerBox li:nth-of-type(3) button{
    width: 122px;
    height: 40px;
    font-size: 14px;
    line-height: 40px;
    color: rgb(255, 255, 255);
    border: none;
    padding: 0px;
    outline: none;
    background: #ea514b;
    margin-left: 1px;
    border-radius: 4px;
}
.registerBox li:nth-of-type(3) button:hover{
    
    background: rgb(227, 131, 127);
}
.pwProblem{
    font-size: 12px;
    line-height: 30px;
    color: #97bfff;
    padding-left: 7px;
    /* background: url(../../img/wonder.png) no-repeat 7px 7px; */
    margin-bottom: 14px;
}
.pwProblem i{
    font-size: 16px;
    vertical-align: middle;
}
.registerBtn div button{
    width: 336px;
    height: 42px;
    background: #eb5b56;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    line-height: 42px;
}
.registerBtn div button:hover{
     background: rgb(227, 131, 127);
}
.registerBtn p{
    font-size: 12px;
    line-height: 50px;
    color: #6c6c6c;
    padding-left: 32px;
}
.registerBtn p span{
    display: inline-block;
    width: 72px;
    color: #ee6c68;
    /* margin-left: -6px; */
}

.jsLogo{
    float: left;
    position:relative;
    height: 71px;
    padding-left:2px;
    /* background: url(../../img/jsLogo.png) no-repeat center; */
}
.navBox{
    padding-top:71px;
    padding-bottom: 20px;
    background-color: #fff;
}
a{
    color: #060606;
}
.navInfo{
    padding-left: 64px;
    /* padding: 0 63px; */
    /* border-bottom: 1px solid #dddddd; */
}
.navInfo div i{
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height:3px;
    background: #ea514b;
    display: none;
}
.el-button--warning:focus, .el-button--warning:hover{
    background: #ea514b!important;
    border-color: #ea514b!important;
}
.refIndex{
    display:block;
    width: 111px;
    height: 71px;
    margin: 0 auto;
    cursor:pointer;
    background: url(../../img/jsLogo.png) no-repeat center;
}
.boon{
    position: fixed;
    top:320px;
    right: 20px;
    z-index:99;
    width: 81px;
    height: 74px;
    overflow: hidden;
}
.boon .boonBtn{
    display:block;
    width: 70px;
    height: 74px;
    margin-left:11px;
}
.boon .boonImgBox{
    width: 208px;
    height: 157px;
    position: absolute;
    top: -37px;
    left: -208px;
    overflow: hidden;
}
.boonImg{
    display:block;
    width: 208px;
    height: 157px;
    position:absolute;
    right: -219px;
    border-radius: 4px;
    transition: all .5s;
}
.boon:hover{
    overflow: visible;
}
.boon:hover .boonImg{
    right: 0px;
}
</style>